﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace Best.SmartCms.API.Migrations
{
    public partial class sitesetting : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "SiteSetting",
                columns: table => new
                {
                    Id = table.Column<string>(maxLength: 50, nullable: false),
                    SiteName = table.Column<string>(maxLength: 50, nullable: true),
                    DomainUrl = table.Column<string>(maxLength: 50, nullable: true),
                    DomainCaseNumber = table.Column<string>(maxLength: 50, nullable: true),
                    CompanyName = table.Column<string>(maxLength: 50, nullable: true),
                    CompanyAdress = table.Column<string>(maxLength: 250, nullable: true),
                    CompanyPhone = table.Column<string>(maxLength: 50, nullable: true),
                    Title = table.Column<string>(maxLength: 250, nullable: true),
                    Meta = table.Column<string>(maxLength: 250, nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_SiteSetting", x => x.Id);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "SiteSetting");
        }
    }
}
